

import requests

headers = {
    "Authorization": "Bearer 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",
    "Content-Type": "application/json",
}

json_data = {
    "model": "openai/gpt-3.5-turbo",
    "messages": [
        {
            "role": "user",
            "content": "What is the meaning of life?",
        },
    ],
}

response = requests.post(
    "https://openrouter.ai/api/v1/chat/completions", headers=headers, json=json_data
)

print(response.text)